<template>
	<view>
		<u-sticky><u-notice-bar type="success" :list="list" speed="130"></u-notice-bar></u-sticky>
		<!-- <view class=" u-p-r-30 u-p-l-30 u-m-t-20" >
			<u-search placeholder="请输入内容" :clearabled="true" v-model="keyword" border-color="#606266" @custom="search" @search="search"></u-search>
		</view> -->
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-swiper :list="listimg" height="420" interval="5000" @click="clickimg"></u-swiper>
		</view>
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="4" @click="click6" hover-class="hover-class">
				<u-grid-item index="601" key="601" v-if="menu.hx_storage_put_quality">
					<u-icon name="https://img.picgo.net/2024/07/02/4cfa2f719751430e310dcab6ad068ffdfb680812a5b5baef.png"
						:size="46" class="fruits"></u-icon>
					<text class="grid-text">入库质检</text>
				</u-grid-item>
				<u-grid-item index="602" key="602" v-if="menu.hx_storage_put_task">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1L3RS.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">上架任务</text>
				</u-grid-item>
				<u-grid-item index="611" key="611" v-if="menu.hx_storage_return">
					<u-icon name="https://s11.ax1x.com/2024/02/27/pFd1AS0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">退货处理</text>
				</u-grid-item>
				<u-grid-item index="622" key="622" v-if="menu.store_returns">
					<u-icon name="https://s21.ax1x.com/2024/09/02/pAVGOYR.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">门店退货登记</text>
				</u-grid-item>
			</u-grid>
			<u-grid :col="4" @click="click6" hover-class="hover-class">
				<u-grid-item index="603" key="603" v-if="menu.hx_storage_out_task">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1LMIP.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">拣货任务</text>
				</u-grid-item>
				<u-grid-item index="609" key="609" v-if="menu.hx_storage_out_picking_task">
					<u-icon name="https://s11.ax1x.com/2024/01/18/pFkXyQ0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">拣货工作</text>
				</u-grid-item>
				<u-grid-item index="610" key="610" v-if="menu.hx_storage_out_manage">
					<u-icon name="https://s11.ax1x.com/2024/01/19/pFEPdU0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">拣货管理</text>
				</u-grid-item>
				<u-grid-item index="604" key="604" v-if="menu.hx_storage_out_examine">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1L8xg.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">出库复核</text>
				</u-grid-item>
				<u-grid-item index="618" key="618" v-if="menu.hx_storage_out_query">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1L8xg.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">复核查询</text>
				</u-grid-item>
				<u-grid-item index="621" key="621" v-if="menu.hx_storage_agv">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1LMIP.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">AGV拣货</text>
				</u-grid-item>
				<u-grid-item index="628" key="628" v-if="menu.hx_storage_agv_task">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1LMIP.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">机器人任务</text>
				</u-grid-item>
				<u-grid-item index="608" key="608" v-if="menu.hx_error_picking">
					<uni-badge size="small" :text="keyword1" absolute="rightTop" type="primary">
						<u-icon name="https://z1.ax1x.com/2023/11/07/pilLYZT.png" :size="46" class="fruits"></u-icon>
					</uni-badge>
					<text class="grid-text">错漏拣处理</text>
				</u-grid-item>
				<u-grid-item index="612" key="612" v-if="menu.turnover_container">
					<u-icon name="https://s21.ax1x.com/2024/05/18/pkusej1.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">仓库管理</text>
				</u-grid-item>
				<u-grid-item index="616" key="616" v-if="menu.turnover_container_md">
					<u-icon name="https://s21.ax1x.com/2024/05/18/pkus14e.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">门店管理</text>
				</u-grid-item>
			</u-grid>

			<u-grid :col="4" @click="click6" hover-class="hover-class">
				<u-grid-item index="605" key="605" v-if="menu.hxOffShelfTask">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1LlPf.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">下架任务</text>
				</u-grid-item>
				<u-grid-item index="627" key="627" v-if="menu.hxOffShelfTaskManage">
					<u-icon name="https://s11.ax1x.com/2024/01/19/pFEPdU0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">下架管理</text>
				</u-grid-item>
				<u-grid-item index="606" key="606" v-if="menu.hx_storage_move_warehouse">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1L1G8.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">移库</text>
				</u-grid-item>
				<u-grid-item index="607" key="607" v-if="menu.hx_storage_stock_query">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1LKat.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">库存查询</text>
				</u-grid-item>
				<u-grid-item index="620" key="620" v-if="menu.hx_storage_goods_update">
					<u-icon name="https://s11.ax1x.com/2022/06/25/jFL2B6.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">商品信息维护</text>
				</u-grid-item>
			</u-grid>
			<u-grid :col="4" @click="click6" hover-class="hover-class">
				<u-grid-item index="613" key="613" v-if="menu.gen_agv_scheduling_task">
					<u-icon name="https://s21.ax1x.com/2024/05/14/pkmg3q0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">海康AGV</text>
				</u-grid-item>
				<u-grid-item index="614" key="614" v-if="menu.setup_priority">
					<u-icon name="https://s21.ax1x.com/2024/05/15/pknpWss.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">设置优先级</text>
				</u-grid-item>
				<u-grid-item index="615" key="615" v-if="menu.pedestrian_walkway_admin">
					<u-icon name="https://s21.ax1x.com/2024/05/16/pknBIY9.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">巷道管理</text>
				</u-grid-item>
				<u-grid-item index="617" key="617" v-if="menu.overFlagList">
					<u-icon name="https://s21.ax1x.com/2024/05/14/pkmg3q0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">超托管理</text>
				</u-grid-item>
				<u-grid-item index="619" key="619" v-if="menu.agv_roadWay_query">
					<u-icon name="https://s1.ax1x.com/2023/08/18/pP1LKat.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">巷道查询</text>
				</u-grid-item>
				<u-grid-item index="635" key="635" v-if="menu.cc_gen_agv_scheduling_task">
					<u-icon name="https://s21.ax1x.com/2024/05/14/pkmg3q0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">长春海康agv</text>
				</u-grid-item>
				<u-grid-item index="636" key="636" v-if="menu.cc_pedestrian_walkway_admin">
					<u-icon name="https://s21.ax1x.com/2024/05/16/pknBIY9.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">长春巷道管理</text>
				</u-grid-item>
				<u-grid-item index="637" key="637" v-if="menu.cc_setup_priority">
					<u-icon name="https://s21.ax1x.com/2024/05/15/pknpWss.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">长春优先级</text>
				</u-grid-item>
				<u-grid-item index="638" key="638" v-if="menu.cc_overFlagList">
					<u-icon name="https://s21.ax1x.com/2024/05/14/pkmg3q0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">长春超托管理</text>
				</u-grid-item>
			</u-grid>
			<u-grid :col="4" @click="click6" hover-class="hover-class">
				<u-grid-item index="623" key="623" v-if="menu.tusk_agv_crt_task">
					<u-icon name="https://s21.ax1x.com/2024/05/14/pkmg3q0.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">TUSK任务</text>
				</u-grid-item>
				<u-grid-item index="624" key="624" v-if="menu.tusk_storage">
					<u-icon name="https://s21.ax1x.com/2024/05/16/pknBIY9.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">巷道信息</text>
				</u-grid-item>

				<u-grid-item index="625" key="625" v-if="menu.xh_goods_transport">
					<u-icon name="https://s21.ax1x.com/2024/07/27/pkqEDa9.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">货物搬运</text>
				</u-grid-item>
				<u-grid-item index="626" key="626" v-if="menu.xh_transport_task">
					<u-icon name="https://s21.ax1x.com/2024/07/27/pkqE4VH.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">下发任务</text>
				</u-grid-item>
			</u-grid>

			<u-grid :col="4" @click="click6" hover-class="hover-class">
				<u-grid-item index="633" key="633" v-if="menu.tool_blu_ele_sca">
					<u-icon name="https://s21.ax1x.com/2024/05/23/pkQSWPP.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">称重复核</text>
				</u-grid-item>
			</u-grid>

		</view>
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="5" @click="click" hover-class="hover-class">
				<u-grid-item index="101" key="101" v-if="menu.new_task">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVQuPx.png" :size="46"></u-icon>
					<text class="grid-text">新建作业</text>
				</u-grid-item>
				<u-grid-item index="102" key="102" v-if="menu.task_orderdj">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVQP2T.png" :size="46"></u-icon>
					<text class="grid-text">作业单据</text>
				</u-grid-item>
				<u-grid-item index="103" key="103" v-if="menu.scan_task">
					<u-icon name="scan" :size="46"></u-icon>
					<text class="grid-text">扫码作业</text>
				</u-grid-item>
				<u-grid-item index="104" key="104" v-if="menu.my_task">
					<u-icon name="clock" :size="46"></u-icon>
					<text class="grid-text">我的作业</text>
				</u-grid-item>
				<u-grid-item index="105" key="105" v-if="menu.feedback">
					<u-icon name="tags" :size="46"></u-icon>
					<text class="grid-text">查询反馈</text>
				</u-grid-item>
				<u-grid-item index="106" key="106" v-if="menu.taskreport">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVGo5j.png" :size="46"></u-icon>
					<text class="grid-text">作业看板</text>
				</u-grid-item>
				<u-grid-item index="107" key="107" v-if="menu.task_ranking">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVJ3sf.png" :size="46"></u-icon>
					<text class="grid-text">作业排名</text>
				</u-grid-item>
				<u-grid-item index="108" key="108" v-if="menu.signincode">
					<u-icon name="https://s11.ax1x.com/2024/02/06/pF1ux91.png" :size="46"></u-icon>
					<text class="grid-text">签到注册码</text>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="5" @click="click2" hover-class="hover-class">
				<u-grid-item index="201" key="201" v-if="menu.storage_put">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKILvD.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">入库作业</text>
				</u-grid-item>
				<u-grid-item index="202" key="202" v-if="menu.storage_put_examine">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVUYXq.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">入库复核</text>
				</u-grid-item>
				<u-grid-item index="203" key="203" v-if="menu.storage_out">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVylNt.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">拣货作业</text>
				</u-grid-item>
				<u-grid-item index="204" key="204" v-if="menu.examine">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVUYXq.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">出库复核</text>
				</u-grid-item>
				<u-grid-item index="205" key="205" v-if="menu.yikuStorageStock">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKTop6.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">移库合托</text>
				</u-grid-item>
				<!-- <u-grid-item index="206" key="206" v-if="menu.addStorageStock">
					<u-icon name="plus" :size="46" class="wms"></u-icon>
					<text class="grid-text">添加库存</text>
				</u-grid-item> -->
				<u-grid-item index="207" key="207" v-if="menu.storageStockImg">
					<u-icon name="home" :size="46" class="wms"></u-icon>
					<text class="grid-text">库房图示</text>
				</u-grid-item>
				<u-grid-item index="208" key="208" v-if="menu.mystorageStock">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKIlBd.png" :size="48" class="wms"></u-icon>
					<text class="grid-text">库存查询</text>
				</u-grid-item>
				<u-grid-item index="209" key="209" v-if="menu.AllocationOut">
					<u-icon name="https://z3.ax1x.com/2021/12/02/otjMTJ.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">调拨出库</text>
				</u-grid-item>
				<u-grid-item index="210" key="210" v-if="menu.dongInventory">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKIlBd.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">库存管理</text>
				</u-grid-item>
				<u-grid-item index="214" key="214" v-if="menu.storage_ruku">
					<u-icon name="https://z3.ax1x.com/2021/11/26/oVylNt.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">入库填单</text>
				</u-grid-item>
			</u-grid>
			<u-grid :col="5" @click="click2" hover-class="hover-class">
				<u-grid-item index="211" key="211" v-if="menu.choupan">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKICX4.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">抽盘</text>
				</u-grid-item>
				<u-grid-item index="212" key="212" v-if="menu.pandian">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oK5L0s.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">盘点</text>
				</u-grid-item>
				<u-grid-item index="213" key="213" v-if="menu.goods_Administration">
					<u-icon name="https://s1.ax1x.com/2022/07/13/jRS7Xq.png" :size="46" class="wms"></u-icon>
					<text class="grid-text">商品管理</text>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="5" @click="click3" hover-class="hover-class">
				<u-grid-item index="301" key="301" v-if="menu.dispatch_app">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKfSLn.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">调度</text>
				</u-grid-item>
				<u-grid-item index="302" key="302" v-if="menu.dispatch_examine">
					<u-icon name="https://s4.ax1x.com/2021/12/21/TMmauQ.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">定价审核</text>
				</u-grid-item>
				<u-grid-item index="303" key="303" v-if="menu.transport">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKW5Md.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">货运</text>
				</u-grid-item>
				<u-grid-item index="304" key="304" v-if="menu.transportCapacity">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKfGSe.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">运力</text>
				</u-grid-item>
				<u-grid-item index="305" key="305" v-if="menu.findtransport">
					<u-icon name="order" :size="46" class="tms"></u-icon>
					<text class="grid-text">运单管理</text>
				</u-grid-item>
				<u-grid-item index="309" key="309" v-if="menu.findtransport_kh">
					<u-icon name="order" :size="46" class="tms"></u-icon>
					<text class="grid-text">运单查询</text>
				</u-grid-item>
				<u-grid-item index="307" key="307" v-if="menu.medata">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKhlBn.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">个人资料</text>
				</u-grid-item>
				<u-grid-item index="308" key="308" v-if="menu.register">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKhinA.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">司机注册码</text>
				</u-grid-item>
				<u-grid-item index="310" key="310" v-if="menu.make_railwayplatform">
					<u-icon name="https://s1.ax1x.com/2022/09/21/xiDIZq.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">月台预约</text>
				</u-grid-item>
				<u-grid-item index="311" key="311" v-if="menu.make_railwayplatform_manage">
					<u-icon name="https://s1.ax1x.com/2022/09/26/xVNRFf.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">月台管理</text>
				</u-grid-item>
				<u-grid-item index="312" key="312" v-if="menu.driver_loading">
					<u-icon name="https://z1.ax1x.com/2023/10/08/pPveL4O.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">装车</text>
				</u-grid-item>
				<u-grid-item index="313" key="313" v-if="menu.driver_signin">
					<u-icon name="https://s4.ax1x.com/2021/12/21/TMmauQ.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">到仓签到</text>
				</u-grid-item>
				<u-grid-item index="320" key="320" v-if="menu.goodQuery">
					<u-icon name="https://s4.ax1x.com/2021/12/21/TMmauQ.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">货品查询</text>
				</u-grid-item>
				<u-grid-item index="321" key="321" v-if="menu.kstJy">
					<u-icon name="https://s4.ax1x.com/2021/12/21/TMmauQ.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">先飞惠油</text>
				</u-grid-item>

				<u-grid-item index="314" key="314" v-if="menu.find_platooncar">
					<u-icon name="https://z1.ax1x.com/2023/11/10/pi8kHWn.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">排车计划</text>
				</u-grid-item>
				<u-grid-item index="315" key="315" v-if="menu.findtransport_unit">
					<u-icon name="https://z1.ax1x.com/2023/12/11/piRjnyV.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">配送查询</text>
				</u-grid-item>
				<u-grid-item index="316" key="316" v-if="menu.dispatch_carrier">
					<u-icon name="https://z3.ax1x.com/2021/11/29/oKfSLn.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">承运调度</text>
				</u-grid-item>
			</u-grid>
			<u-grid :col="5" @click="click3" hover-class="hover-class">
				<u-grid-item index="317" key="317" v-if="menu.delivery_stores">
					<u-icon name="bag-fill" :size="46" class="tms"></u-icon>
					<text class="grid-text">绑定门店</text>
				</u-grid-item>
				<u-grid-item index="318" key="318" v-if="menu.store_loading">
					<u-icon name="https://z1.ax1x.com/2023/10/08/pPveL4O.png" :size="46" class="tms"></u-icon>
					<text class="grid-text">门店装车</text>
				</u-grid-item>
			</u-grid>
			<u-grid :col="5" @click="click3" hover-class="hover-class">
				<u-grid-item index="319" key="319" v-if="menu.freight_rec">
					<u-icon name="bag-fill" :size="46" class="tms"></u-icon>
					<text class="grid-text">运费对账</text>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="5" @click="click4" hover-class="hover-class">
				<u-grid-item index="401" key="401" v-if="menu.pick_rk">
					<u-icon name="https://s1.ax1x.com/2022/06/15/XoWHpj.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">采摘入库</text>
				</u-grid-item>
				<u-grid-item index="402" key="402" v-if="menu.pick_zf">
					<u-icon name="https://s1.ax1x.com/2022/06/15/Xofd3j.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">采摘直发</text>
				</u-grid-item>
				<u-grid-item index="403" key="403" v-if="menu.fruits_packing">
					<u-icon name="https://s1.ax1x.com/2022/06/22/jpesMD.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">成品包装</text>
				</u-grid-item>
				<u-grid-item index="404" key="404" v-if="menu.packing_order">
					<u-icon name="https://s1.ax1x.com/2022/06/23/jCEWJP.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">成品发货</text>
				</u-grid-item>
				<u-grid-item index="405" key="405" v-if="menu.fruits_allocation">
					<u-icon name="https://s1.ax1x.com/2022/06/25/jFL2B6.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">调拨</text>
				</u-grid-item>
				<u-grid-item index="406" key="406" v-if="menu.defective_product">
					<u-icon name="https://s1.ax1x.com/2022/06/27/jE6cy4.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">次果处置</text>
				</u-grid-item>
				<u-grid-item index="407" key="407" v-if="menu.stock_control">
					<u-icon name="https://s1.ax1x.com/2022/06/27/jEfiod.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">库存管理</text>
				</u-grid-item>
				<u-grid-item index="408" key="408" v-if="menu.stock_analysis">
					<u-icon name="https://s1.ax1x.com/2022/06/30/juy5dg.png" :size="46" class="fruits"></u-icon>
					<text class="grid-text">库存分析</text>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="5" @click="click5" hover-class="hover-class">
				<u-grid-item index="501" key="501" v-if="menu.tool_repair_goods">
					<u-icon name="https://s1.ax1x.com/2023/04/08/pp7HMSf.png" :size="46" class="tool"></u-icon>
					<text class="grid-text">移库</text>
				</u-grid-item>
				<u-grid-item index="502" key="502" v-if="menu.tool_storage_stock">
					<u-icon name="https://s1.ax1x.com/2023/04/08/pp7HJTs.png" :size="46" class="tool"></u-icon>
					<text class="grid-text">库存查询</text>
				</u-grid-item>
				<u-grid-item index="503" key="503" v-if="menu.return_goods_scan">
					<u-icon name="scan" :size="46" class="tool"></u-icon>
					<text class="grid-text">退货扫码</text>
				</u-grid-item>
				<u-grid-item index="504" key="504" v-if="menu.tool_work_task">
					<u-icon name="https://s1.ax1x.com/2023/04/20/p9ASSot.png" :size="46" class="tool"></u-icon>
					<text class="grid-text">补货任务</text>
				</u-grid-item>
			</u-grid>
		</view>
		
		
		<view class="wrap" style="padding-left: 20rpx;padding-right: 20rpx;padding-top: 15rpx;">
			<u-grid :col="5" @click="click9" hover-class="hover-class">
				<u-grid-item index="901" key="901" v-if="menu.md_pb">
					<u-icon name="https://s1.ax1x.com/2023/04/08/pp7HMSf.png" :size="46" class="tool"></u-icon>
					<text class="grid-text">排班</text>
				</u-grid-item>
				<u-grid-item index="902" key="902" v-if="menu.md_pb_jl">
					<u-icon name="https://s1.ax1x.com/2023/04/08/pp7HJTs.png" :size="46" class="tool"></u-icon>
					<text class="grid-text">排班记录</text>
				</u-grid-item>
				
			</u-grid>
		</view>
		
		
		<u-tabbar :list="tabbar" :show="show" active-color="#6c6c6c"></u-tabbar>
		<u-popup v-model="popupShow2" mode="center" closeable width="640rpx" height="640rpx" border-radius="10">
			<view class="container page">
				<view class="panel">
					<view class="header">微信扫一扫注册零脉司机账号</view>
					<view class="qrcode">
						<canvas canvas-id="qrcode" id="qrcode" />
					</view>
				</view>
			</view>
		</u-popup>
		<u-popup v-model="popupShow3" mode="center" closeable width="640rpx" height="640rpx" border-radius="10">
			<view class="container page">
				<view class="panel">
					<view class="header">微信扫一扫注册零脉司机账号</view>
					<view class="qrcode">
						<view>
							<tki-qrcode ref="qrcode" cid="qrcode111" :val="val" :size="size" unit="upx"
								:loadMake="loadMake" :onval="onval" :showLoading="showLoading" />
						</view>
					</view>
				</view>
			</view>
		</u-popup>
		<view>
			<u-toast ref="uToast" />
		</view>
	</view>
</template>
<script>
	import bmap from '../../static/js/bmap-wx.js'
	import config from '../../config.js'
	import CODE from '@uni-plugs/uni-code'
	import tkiQrcode from '@/node_modules/tki-qrcode/components/tki-qrcode/tki-qrcode.vue'
	export default {
		data() {
			return {
				tabbar: '',
				show: true,
				keyword: '',
				keyword1: 0,
				menu: {
					new_task: false, //新建作业
					task_orderdj: false, //作业单据
					scan_task: false, //扫码作业
					my_task: false, //我的作业
					feedback: false, //查询反馈
					taskreport: false, //作业看板
					task_ranking: false, //作业排行
					signincode: false, //签到注册码
					storage_ruku: false, //入库填单
					storage_put: false, //入库作业
					storage_put_examine: false, //入库审核
					storage_out: false, //拣货作业
					examine: false, //出库复核
					yikuStorageStock: false, //移库合托
					addStorageStock: false, //添加库存
					storageStockImg: false, //库房图示
					mystorageStock: false, //库存查询
					dongInventory: false, //库存管理
					AllocationOut: false, //调拨出库
					choupan: false, //抽盘
					pandian: false, //盘点
					goods_Administration: false, //商品管理
					store_returns: false, //门店退货登记


					dispatch_app: false, //调度
					dispatch_examine: false, //定价审核
					transport: false, //货运
					transportCapacity: false, //运力
					findtransport: false, //运单查询
					findtransport_kh: false,
					medata: false, //个人资料
					register: false, //司机注册码
					make_railwayplatform: false, //月台预约
					make_railwayplatform_manage: false, //月台管理
					driver_loading: false, //装车
					driver_signin: false, //签到
					goodQuery: false, //货品查询
					kstJy: false, //卡世通加油
					find_platooncar: false, //排车计划
					delivery_stores: false, //绑定门店
					store_loading: false, //门店装车
					freight_rec: false, //运费对账
					findtransport_unit: false, //配送查询
					dispatch_carrier: false, //承运调度

					pick_rk: false, //采摘入库
					pick_zf: false, //采摘直发
					fruits_packing: false, //成品包装
					packing_order: false, //成品发货
					fruits_allocation: false, //调拨
					defective_product: false, //次果处置
					stock_control: false, //库存管理
					stock_analysis: false, //库存分析

					tool_repair_goods: false, //移库-云仓
					tool_storage_stock: false, //库存查询-云仓
					return_goods_scan: false, //退货扫码-云仓
					tool_work_task: false, //补货任务

					hx_storage_put_quality: false, //入库质检
					hx_storage_put_task: false, //上架任务
					hx_storage_return: false, //退货处理
					hx_storage_out_task: false, //拣货任务
					hx_storage_out_picking_task: false, //拣货工作
					hx_storage_out_manage: false, //拣货管理
					hx_storage_agv: false, //AGV拣货
					hx_storage_agv_task: false, //机器人任务
					hx_storage_out_examine: false, //出库复核
					hx_storage_out_query: false, //复核查询
					hxOffShelfTask: false, //下架任务
					hxOffShelfTaskManage: false, //下架管理
					hx_storage_move_warehouse: false, //移库
					hx_storage_stock_query: false, //库存查询
					hx_storage_goods_update: false, // 商品信息查询
					hx_error_picking: false, // 错漏拣处理
					turnover_container: false, //仓库管理
					turnover_container_md: false, //门店管理
					gen_agv_scheduling_task: false, //海康AGV
					cc_gen_agv_scheduling_task: false, //长春海康agv
					cc_pedestrian_walkway_admin: false, //长春巷道管理
					cc_setup_priority: false, //长春优先级
					cc_overFlagList: false, //长春超托管理 
					setup_priority: false, //设置优先级
					pedestrian_walkway_admin: false, //行道管理
					overFlagList: false, //超托管理 
					agv_roadWay_query: false, //巷道查询
					tusk_agv_crt_task: false, //TUSK-AGV任务
					tool_blu_ele_sca: false, //蓝牙电子秤称重复核
					tusk_storage: false, //TSK-AGV巷道信息
					xh_goods_transport: false, //兴化——货物搬运
					xh_transport_task: false, //兴化——下发任务
					
					//门店排班  相关
					md_pb:false, // 排班
					md_pb_jl:false // 排班记录
				},
				list: [
					'欢迎您使用零脉仓配！请多多提出宝贵意见，我们也在不停的优化升级给您带来更好的体验！'
				],
				listimg: [{
						image: 'https://s11.ax1x.com/2024/01/27/pFncvDJ.png',
						title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
						image: 'https://s21.ax1x.com/2024/05/21/pkMFdYR.png',
						title: '身无彩凤双飞翼，心有灵犀一点通'
					}

				],
				imgarr: [
					'https://s11.ax1x.com/2024/01/27/pFncvDJ.png',
					'https://s21.ax1x.com/2024/05/21/pkMFdYR.png'
				],
				onlyFromCamera: true, //相册扫码

				BMap: {},
				popupShow2: false,
				popupShow3: false,

				val: '-400',
				size: 450,
				loadMake: true, // 组件加载完成后自动生成二维码
				onval: true,
				showLoading: false,

				hxlnotice: ''
			}
		},
		onLoad() {
			// uni.getLocation({
			// 	type:'gcj02',
			// 	altitude:false,
			// 	success: function (res) {
			// 		const latitude = res.latitude;
			// 		const longitude = res.longitude;
			// 		uni.request({
			// 			method:"POST",
			// 			header:{
			// 				'Authorization' :uni.getStorageSync('token'),
			// 			},
			// 			url: config.root +'/rest/transportCar/jingwei_checkdemo?longitude='+longitude+'&latitude='+latitude+'&setLocationId='+21044,
			// 			data:{
			// 			},
			// 			success: (res) => {
			// 				if(res.data.code == 200) {
			// 				} else {
			// 					uni.showModal({
			// 						title: '提示',
			// 						content: res.data.message,
			// 						showCancel: false,
			// 						success: (res) => {
			// 						}
			// 					});
			// 				}
			// 			}
			// 		})
			// 	},
			// 	fail:function(res){
			// 		uni.showToast({
			// 			title: '获取当前定位失败',
			// 			duration: 2000,
			// 			icon:'none',
			// 		});
			// 	},
			// })

			const token = uni.getStorage('token');
			if (typeof token == 'undefined' || token == null || token == '') {
				this.show = true
				this.$Router.replaceAll({
					name: 'login',
				})
			} else {
				this.show = true
				this.tabbar = this.$store.state.tabbar
			}

			//#ifdef APP-PLUS
			this.$http.post('/rest/sysJiluappVersions/newVersions', { //查询app最新版本
			}, {
				params: {},
				header: {
					'Authorization': uni.getStorageSync('token'),
				}
			}).then(res => {
				let data = res.data.data
				if (data != '') {
					if (config.versions != data.version) {
						this.doUpData();
					}
				}
			})
			//#endif

			this.$http.post('/rest/auth/notice', { //查询公告
			}, {
				params: {},
				header: {
					'Authorization': uni.getStorageSync('token'),
				}
			}).then(res => {
				if (res.data.success) {
					uni.showModal({
						showCancel: false,
						confirmText: '我已知晓',
						title: res.data.data.title,
						content: res.data.data.content.replace(/<br>/g, "\r\n"),
						success: function(res) {
							if (res.confirm) {
								console.log('用户点击确定');
							}
						}
					});
				}
			})

			this.$http.post('/rest/auth/photo', { //查询是否是组长、配送
			}, {
				params: {},
				header: {
					'Authorization': uni.getStorageSync('token'),
				}
			}).then(res => {
				this.onlyFromCamera = res.data.data
			})

			this.$http.post('/rest/driverAndCar/checkmsg', { //校验司机 个人信息完善
			}, {
				params: {},
				header: {
					'Authorization': uni.getStorageSync('token'),
				}
			}).then(res => {
				if (res.data.code != 200) {
					uni.showToast({
						title: res.data.message,
						duration: 2000,
						icon: 'none'
					});
				}
			})

			//查询运输中运单  进行上传轨迹
			//#ifdef MP-WEIXIN
			let appYingyanTimeId = uni.getStorageSync('appYingyanTimeId')
			if (typeof appYingyanTimeId != 'undefined' && appYingyanTimeId != null && appYingyanTimeId != '') {
				clearInterval(appYingyanTimeId)
				uni.removeStorageSync('appYingyanTimeId')
				uni.removeStorageSync('appYingyanDispatchNumber')
			}
			this.$http.post('/rest/transportCar/findCarListBySpecToo2', {}, {
				params: {
					findtype: '1'
				},
				header: {
					'Authorization': uni.getStorageSync('token'),
				}
			}).then(res => {
				if (res.data.data.length > 0) {
					console.log(11111111111)
					let latestItem = null;
					let maxTime = null;
					res.data.data.forEach(item => {
						if(item.tstate == '运输中' ){
							if (!maxTime || item.time > maxTime) {
							            maxTime = item.time; // 更新最大时间
							            latestItem = item; // 更新最大时间对应的项
							}
						}
					
					});
					

					let shangchuan = false
					for (let item1 of res.data.data) {
						
						let guiji = item1.guiji
						if (item1.tstate == '运输中' || item1.tstate == '待发运' || item1.tstate == '已定价') {
							var that = this
							if (item1.paiType == 'web') { //更新
								let switchWl = false
								for (let item2 of item1.list) {
									if (item2.getLocation != null && item2.getLocation != '') {
										this.$http.post('/rest/address/getByid', {}, {
											params: {
												id: item2.getLocationId
											},
											header: {
												'Authorization': uni.getStorageSync('token'),
											}
										}).then(res => {
											console.log("res.data.data.switchWl", res)
											if (res.data.data.switchWl == 1) {

												// console.log('收货地址围栏为开启')
												if (switchWl == false) {
													// console.log('创建轨迹实例')

													if (item1.dispatchNumber == latestItem
														.dispatchNumber) {
														uni.request({
															method: "POST",
															url: config.root +
																'/rest/track/checkTerminals?carnumbger=' +
																item1.carnumbger +
																'&dispatchNumber=' + item1
																.dispatchNumber,
															data: {},
															header: {
																'Authorization': uni
																	.getStorageSync('token'),
															},
															success: (res) => {
																// console.log("创建终端成功:", res)
																uni.setStorageSync(item1
																	.carnumbger + "-" +
																	item1.dispatchNumber,
																	res.data)
																if (res.data.trid != null &&
																	res.data.trid !== '') {
																	uni.request({
																		method: "POST",
																		url: config
																			.root +
																			'/rest/transport/edittDispatch?dispatchNumber=' +
																			item1
																			.dispatchNumber,
																		data: {},
																		header: {
																			'Authorization': uni
																				.getStorageSync(
																					'token'
																				),
																		},
																		success: (
																			res
																		) => {
																			if (res
																				.data
																				.code ==
																				200
																			) {
																				//成功更新
																				switchWl
																					=
																					true
																				guiji
																					=
																					'1'
																			}
																		}
																	})
																}
															},
															fail: (err) => {
																// console.log("创建终端失败:",err);
															}
														})
													}
												}
											}
										})
									}
								}


								uni.request({
									method: "POST",
									url: config.root + '/rest/transport/edittDispatch2?dispatchNumber=' +
										item1.dispatchNumber,
									data: {},
									header: {
										'Authorization': uni.getStorageSync('token'),
									},
									success: (res) => {
										if (res.data.code == 200) {
											//成功更新
										}
									}
								})
							}

							if (item1.dispatchNumber == latestItem.dispatchNumber) {
								
								// 读取或初始化 trackDataArray
								let trackDataArray = uni.getStorageSync(item1.dispatchNumber) || [];
								// 将初始的 trackDataArray 存储到本地存储中
								uni.setStorageSync(item1.dispatchNumber, trackDataArray);

								if (!shangchuan) {
									wx.startLocationUpdateBackground({
										success: (res) => {
											let appYingyanTimeId = setInterval(() => {
												uni.getLocation({
													type: 'gcj02',
													altitude: false,
													success: function(res) {
														if (guiji == '1') {
															let trackData = uni
																.getStorageSync(
																	item1
																	.carnumbger +
																	"-" + item1
																	.dispatchNumber
																);
															// console.log("trackData:", trackData);
															let sid = trackData
																.sid;
															let tid = trackData
																.tid;
															let trid = trackData
																.trid;

															// 创建新的定位点
															let newPoint = {
																"location": res
																	.longitude +
																	',' + res
																	.latitude,
																"locatetime": Math
																	.round(
																		new Date()
																		.getTime()
																	),
																"height": res
																	.verticalAccuracy,
																"accuracy": res
																	.accuracy
															};

															// 从本地存储中读取最新的 trackDataArray
															trackDataArray = uni
																.getStorageSync(
																	item1
																	.dispatchNumber
																) || [];
															trackDataArray.push(
																newPoint);
															// 存储更新后的 trackDataArray
															uni.setStorageSync(
																item1
																.dispatchNumber,
																trackDataArray);

															// console.log("trackDataArray:", trackDataArray)
															if (trackDataArray
																.length >= 30) {
																uni.request({
																	method: "POST",
																	url: config
																		.root +
																		'/rest/track/uploadTracePoint',
																	data: {
																		sid: sid,
																		tid: tid,
																		trid: trid,
																		points: trackDataArray
																	},
																	header: {
																		'Authorization': uni
																			.getStorageSync(
																				'token'
																			),
																	},
																	success: (
																		res
																	) => {
																		// console.log("上传轨迹点成功")
																		// 上传成功后清空数组
																		trackDataArray
																			= [];
																		uni.setStorageSync(
																			item1
																			.dispatchNumber,
																			trackDataArray
																		);
																	}
																})
															}

														}
													},
													fail: function(res) {
														// console.log("获取当前位置失败")
													},
												})
											}, 60000)
											shangchuan = true
											uni.setStorageSync('appYingyanTimeId', appYingyanTimeId);
											uni.setStorageSync('appYingyanDispatchNumber', item1
												.dispatchNumber);
										},
										fail: (res) => {
											const msg = '开启持续定位失败。请在我的-定位授权中开启使用小程序期间和离开小程序后位置权限';
											uni.showToast({
												icon: 'none',
												title: msg,
												duration: 4000
											});
										}
									})
								}
							}
						}
					}
				}
			})
			//#endif
		},
		onShow() {
			this.getMenu()

		},
		onPullDownRefresh() {
			this.getMenu()
			uni.stopPullDownRefresh()
		},
		methods: {
			clickimg(index) {
				uni.previewImage({
					urls: this.imgarr,
				});
			},
			click6(e) {
				if (e == 601) {
					this.$Router.push({
						name: 'hx_storage_put_quality'
					})
				}
				if (e == 602) {
					this.$Router.push({
						name: 'hx_storage_put_task'
					})
				}
				if (e == 603) {
					this.$Router.push({
						name: 'hx_storage_out_task'
					})
				}
				if (e == 604) {
					this.$Router.push({
						name: 'hx_storage_out_examine'
					})
				}
				if (e == 618) {
					this.$Router.push({
						name: 'hx_storage_out_query'
					})
				}
				if (e == 620) {
					this.$Router.push({
						name: 'hx_storage_goods_update'
					})
				}
				if (e == 605) {
					this.$Router.push({
						name: 'hxOffShelfTask'
					})
				}
				if (e == 627) {
					this.$Router.push({
						name: 'hxOffShelfTask_manage'
					})
				}
				if (e == 606) {
					this.$Router.push({
						name: 'hx_storage_move_warehouse'
					})
				}
				if (e == 607) {
					this.$Router.push({
						name: 'hx_storage_stock_query'
					})
				}
				if (e == 608) {
					this.$Router.push({
						name: 'hx_error_picking'
					})
				}
				if (e == 609) {
					this.$Router.push({
						name: 'hx_storage_out_picking_task'
					})
				}
				if (e == 610) {
					this.$Router.push({
						name: 'hx_storage_out_manage'
					})
				}
				if (e == 621) {
					this.$Router.push({
						name: 'hx_storage_agv'
					})
				}
				if (e == 628) {
					this.$Router.push({
						name: 'hx_storage_agv_task'
					})
				}

				if (e == 611) {
					this.$Router.push({
						name: 'hx_storage_put_chuli'
					})
				}
				if (e == 622) {
					this.$Router.push({
						name: 'store_returns'
					})
				}
				if (e == 612) {
					this.$Router.push({
						name: 'turnover_container'
					})
				}
				if (e == 613) {
					this.$Router.push({
						name: 'gen_agv_scheduling_task'
					})
				}
				if (e == 614) {
					this.$Router.push({
						name: 'setup_priority'
					})
				}
				if (e == 615) {
					this.$Router.push({
						name: 'pedestrian_walkway_admin'
					})
				}
				if (e == 616) {
					this.$Router.push({
						name: 'turnover_container_md'
					})
				}
				if (e == 617) {
					this.$Router.push({
						name: 'overFlagList'
					})
				}
				if (e == 619) {
					this.$Router.push({
						name: 'agv_roadWay_query'
					})
				}
				if (e == 623) {
					this.$Router.push({
						name: 'tusk_agv_crt_task'
					})
				}
				if (e == 624) {
					this.$Router.push({
						name: 'tusk_storage'
					})
				}
				if (e == 625) {
					this.$Router.push({
						name: 'xh_goods_transport'
					})
				}
				if (e == 626) {
					this.$Router.push({
						name: 'xh_transport_task'
					})
				}
				if (e == 633) {
					this.$Router.push({
						name: 'tool_blu_ele_sca'
					})
				}
				if (e == 635) {
					this.$Router.push({
						name: 'cc_gen_agv_scheduling_task'
					})
				}
				if (e == 636) {
					this.$Router.push({
						name: 'cc_pedestrian_walkway_admin'
					})
				}
				if (e == 637) {
					this.$Router.push({
						name: 'cc_setup_priority'
					})
				}
				if (e == 638) {
					this.$Router.push({
						name: 'cc_overFlagList'
					})
				}
				
			},
			click5(e) {
				if (e == 501) {
					this.$Router.push({
						name: 'tool_repair_goods'
					})
				}
				if (e == 502) {
					this.$Router.push({
						name: 'tool_storage_stock'
					})
				}
				if (e == 503) {
					this.$Router.push({
						name: 'return_goods_scan'
					})
				}
				if (e == 504) {
					this.$Router.push({
						name: 'tool_work_task'
					})
				}
			},
			click4(e) {
				if (e == 401) {
					this.$Router.push({
						name: 'pick_rk'
					})
				}
				if (e == 402) {
					this.$Router.push({
						name: 'pick_zf'
					})
				}
				if (e == 403) {
					this.$Router.push({
						name: 'fruits_packing'
					})
				}
				if (e == 404) {
					this.$Router.push({
						name: 'packing_order'
					})
				}
				if (e == 405) {
					this.$Router.push({
						name: 'fruits_allocation'
					})
				}
				if (e == 406) {
					this.$Router.push({
						name: 'defective_product'
					})
				}
				if (e == 407) {
					this.$Router.push({
						name: 'stock_control'
					})
				}
				if (e == 408) {
					this.$Router.push({
						name: 'stock_analysis'
					})
				}
			},
			click3(e) {
				if (e == 301) {
					this.$Router.push({
						name: 'dispatch'
					})
				}
				if (e == 302) {
					this.$Router.push({
						name: 'dispatch_examine'
					})
				}
				if (e == 303) {
					this.$http.post('/rest/driverAndCar/checkmsg', { //校验司机 个人信息完善
					}, {
						params: {},
						header: {
							'Authorization': uni.getStorageSync('token'),
						}
					}).then(res => {
						if (res.data.code != 200) {
							uni.showToast({
								title: res.data.message,
								duration: 2000,
								icon: 'none'
							});
						} else {
							this.$Router.push({
								name: 'transport'
							})
						}
					})
				}
				if (e == 304) {
					this.$Router.push({
						name: 'car'
					})
				}
				if (e == 305) {
					this.$Router.push({
						name: 'findtransport'
					})
				}
				if (e == 309) {
					this.$Router.push({
						name: 'findtransport_kh'
					})
				}
				if (e == 307) {
					this.$Router.push({
						name: 'medata'
					})
				}
				if (e == 308) {
					this.$http.post('/rest/operate/findme', { //查询 所属项目
					}, {
						params: {},
						header: {
							'Authorization': uni.getStorageSync('token'),
						}
					}).then(res => {
						if (res.data.data != null && res.data.data != '') {
							//#ifdef H5 || APP-PLUS
							this.val = 'https://jilu56it.top//register?operateId=' + res.data.data.id
							this.popupShow3 = true
							//#endif
							//#ifdef MP-WEIXIN
							this.popupShow2 = true
							this.findCan(res.data.data.id)
							//#endif
						} else {
							uni.showToast({
								title: '未查询到所属项目，无法出示',
								duration: 2000,
								icon: 'none'
							});
						}
					})
				}
				if (e == 310) {
					this.$Router.push({
						name: 'make_railwayplatform'
					})
				}
				if (e == 311) {
					this.$Router.push({
						name: 'make_railwayplatform_manage'
					})
				}
				if (e == 312) {
					this.$http.post('/rest/transport/getQx', { //校验司机 个人信息完善
					}, {
						params: {},
						header: {
							'Authorization': uni.getStorageSync('token'),
						}
					}).then(res => {
						if (res.data.code != 200) {
							uni.showToast({
								title: res.data.message,
								duration: 2000,
								icon: 'none'
							});
						} else {
							this.$Router.push({
								name: 'driver_loading'
							})
						}
					})
				}
				if (e == 313) {
					this.$Router.push({
						name: 'driver_signin'
					})
				}
				if (e == 320) {
					this.$Router.push({
						name: 'goodQuery'
					})
				}
				if (e == 321) {
					// 跳转小程序
					wx.navigateToMiniProgram({
						appId: 'wx427a1d3d02caa315',
						path: '/pages/petrolStation/petrolStation',
						// extraData: {},
						// envVersion: 'develop',
						success(res) {
							// 打开成功
							console.log("打开成功信息", res)
						}
					})

					// 跳转内嵌页面
					// const url= 'packagesTransport/transport/kstJy/webview?url=https://h5.xyobd.com/fleet/bdeksth5/#/';
					// uni.navigateTo({
					//   url: url
					// })

					// 根据他的接口自己封装的页面
					// this.$Router.push({
					// 	name: 'kstJy'
					// })
				}
				if (e == 314) {
					this.$Router.push({
						name: 'find_platooncar'
					})
				}
				if (e == 315) {
					this.$Router.push({
						name: 'findtransport_unit'
					})
				}
				if (e == 316) {
					this.$Router.push({
						name: 'dispatch_carrier'
					})
				}
				if (e == 317) {
					this.$Router.push({
						name: 'delivery_stores'
					})
				}
				if (e == 318) {
					this.$http.post('/rest/transport/getQx', { //校验司机 个人信息完善
					}, {
						params: {},
						header: {
							'Authorization': uni.getStorageSync('token'),
						}
					}).then(res => {
						if (res.data.code != 200) {
							uni.showToast({
								title: res.data.message,
								duration: 2000,
								icon: 'none'
							});
						} else {
							this.$Router.push({
								name: 'store_loading'
							})
						}
					})
				}
				if (e == 319) {
					this.$Router.push({
						name: 'freight_rec'
					})
				}


			},
			findCan(id) {
				CODE.QRCode({
					id: 'qrcode', // canvas的canvas-id
					code: 'https://jilu56it.top//register?operateId=' + id, //生成二维码的字符串
					size: 210, // 二维码大小
					level: 4, //等级 0～4
					border: {
						color: ['#e66465', '#9198e5'], //边框颜色支持渐变色
						lineWidth: 4, //边框宽度
					},
					// img: require('@/static/zslogo02.png'),//图片
					// iconSize: 40,//二维码图标的大小
					color: '#000' // 二维码颜色 默认黑色
				});
			},
			click2(e) {
				if (e == 201) {
					this.$Router.push({
						name: 'storage_put'
					})
				}
				if (e == 202) {
					this.$Router.push({
						name: 'storage_put_examine'
					})
				}
				if (e == 203) {
					this.$Router.push({
						name: 'storage_out'
					})
				}
				if (e == 204) {
					this.$Router.push({
						name: 'examine'
					})
				}
				if (e == 205) {
					this.$Router.push({
						name: 'movesupport'
					})
				}
				if (e == 206) {
					this.$Router.push({
						name: 'addStorageStock'
					})
				}
				if (e == 207) {
					this.$Router.push({
						name: 'storageStockImg'
					})
				}
				if (e == 208) {
					this.$Router.push({
						name: 'mystorageStock'
					})
				}
				if (e == 209) {
					this.$Router.push({
						name: 'storageallocation_list'
					})
				}
				if (e == 210) {
					this.$Router.push({
						name: 'moveDisk'
					})
				}
				if (e == 211) {
					this.$Router.push({
						name: 'choupan'
					})
				}
				if (e == 212) {
					this.$Router.push({
						name: 'pandianindex'
					})
				}
				if (e == 213) {
					this.$Router.push({
						name: 'goods_Administration'
					})
				}
				if (e == 214) {
					this.$Router.push({
						name: 'storage_ruku'
					})
				}
			},
			setAllValues(obj) {
				Object.keys(obj).forEach(key => {
					obj[key] = false;
				});
			},
			getMenu() {
				this.$http.post('/rest/auth/getMenu', { //查询角色权限
				}, {
					params: {},
					header: {
						'Authorization': uni.getStorageSync('token'),
					}
				}).then(res => {
					let arr = []
					this.setAllValues(this.menu);
					for (let item1 of res.data.data) {
						this.menunull = 1
						if (item1.code == 'new_task') {
							this.menu.new_task = true
						}
						if (item1.code == 'task_orderdj') {
							this.menu.task_orderdj = true
						}
						if (item1.code == 'scan_task') {
							this.menu.scan_task = true
						}
						if (item1.code == 'my_task') {
							this.menu.my_task = true
						}
						if (item1.code == 'feedback') {
							this.menu.feedback = true
						}
						if (item1.code == 'taskreport') {
							this.menu.taskreport = true
						}
						if (item1.code == 'task_ranking') {
							this.menu.task_ranking = true
						}
						if (item1.code == 'signincode') {
							this.menu.signincode = true
						}
						if (item1.code == 'storageStockImg') {
							this.menu.storageStockImg = true
						}
						if (item1.code == 'order_put_plan') {
							this.menu.order_put_plan = true
						}
						if (item1.code == 'storage_put') {
							this.menu.storage_put = true
						}
						if (item1.code == 'storage_put_examine') {
							this.menu.storage_put_examine = true
						}
						if (item1.code == 'examine') {
							this.menu.examine = true
						}
						if (item1.code == 'storage_out') {
							this.menu.storage_out = true
						}
						if (item1.code == 'storage_ruku') {
							this.menu.storage_ruku = true
						}
						if (item1.code == 'yikuStorageStock') {
							this.menu.yikuStorageStock = true
						}
						if (item1.code == 'addStorageStock') {
							this.menu.addStorageStock = true
						}
						if (item1.code == 'mystorageStock') {
							this.menu.mystorageStock = true
						}
						if (item1.code == 'dongInventory') {
							this.menu.dongInventory = true
						}
						if (item1.code == 'AllocationOut') {
							this.menu.AllocationOut = true
						}
						if (item1.code == 'choupan') {
							this.menu.choupan = true
						}
						if (item1.code == 'pandian') {
							this.menu.pandian = true
						}
						if (item1.code == 'goods_Administration') {
							this.menu.goods_Administration = true
						}

						//#ifdef MP-WEIXIN
						if (item1.code == 'dispatch_app') {
							this.menu.dispatch_app = true
						}
						if (item1.code == 'dispatch_examine') {
							this.menu.dispatch_examine = true
						}
						if (item1.code == 'transport') {
							this.menu.transport = true
						}
						if (item1.code == 'transportCapacity') {
							this.menu.transportCapacity = true
						}
						if (item1.code == 'findtransport') {
							this.menu.findtransport = true
						}
						if (item1.code == 'findtransport_kh') {
							this.menu.findtransport_kh = true
						}
						if (item1.code == 'medata') {
							this.menu.medata = true
						}
						if (item1.code == 'register') {
							this.menu.register = true
						}
						if (item1.code == 'make_railwayplatform') {
							this.menu.make_railwayplatform = true
						}
						if (item1.code == 'make_railwayplatform_manage') {
							this.menu.make_railwayplatform_manage = true
						}
						if (item1.code == 'driver_loading') {
							this.menu.driver_loading = true
						}
						if (item1.code == 'driver_signin') {
							this.menu.driver_signin = true
						}
						if (item1.code == 'goodQuery') {
							this.menu.goodQuery = true
						}
						if (item1.code == 'kstJy') {
							this.menu.kstJy = true
						}
						if (item1.code == 'find_platooncar') {
							this.menu.find_platooncar = true
						}
						if (item1.code == 'findtransport_unit') {
							this.menu.findtransport_unit = true
						}
						if (item1.code == 'dispatch_carrier') {
							this.menu.dispatch_carrier = true
						}
						if (item1.code == 'delivery_stores') {
							this.menu.delivery_stores = true
						}
						if (item1.code == 'store_loading') {
							this.menu.store_loading = true
						}
						if (item1.code == 'freight_rec') {
							this.menu.freight_rec = true
						}
						//#endif

						if (item1.code == 'pick_rk') {
							this.menu.pick_rk = true
						}
						if (item1.code == 'pick_zf') {
							this.menu.pick_zf = true
						}
						if (item1.code == 'fruits_packing') {
							this.menu.fruits_packing = true
						}
						if (item1.code == 'packing_order') {
							this.menu.packing_order = true
						}
						if (item1.code == 'fruits_allocation') {
							this.menu.fruits_allocation = true
						}
						if (item1.code == 'defective_product') {
							this.menu.defective_product = true
						}
						if (item1.code == 'stock_control') {
							this.menu.stock_control = true
						}
						if (item1.code == 'stock_analysis') {
							this.menu.stock_analysis = true
						}

						if (item1.code == 'tool_repair_goods') {
							this.menu.tool_repair_goods = true
						}
						if (item1.code == 'tool_storage_stock') {
							this.menu.tool_storage_stock = true
						}
						if (item1.code == 'return_goods_scan') {
							this.menu.return_goods_scan = true
						}
						if (item1.code == 'tool_work_task') {
							this.menu.tool_work_task = true
						}

						if (item1.code == 'hx_storage_put_quality') {
							this.menu.hx_storage_put_quality = true
						}
						if (item1.code == 'hx_storage_put_task') {
							this.menu.hx_storage_put_task = true
						}
						if (item1.code == 'hx_storage_return') {
							this.menu.hx_storage_return = true
						}
						if (item1.code == 'store_returns') {
							this.menu.store_returns = true
						}
						if (item1.code == 'hx_storage_out_task') {
							this.menu.hx_storage_out_task = true
						}
						if (item1.code == 'hx_storage_out_examine') {
							this.menu.hx_storage_out_examine = true
						}
						if (item1.code == 'hx_storage_out_query') {
							this.menu.hx_storage_out_query = true
						}
						if (item1.code == 'hx_moving_task') {
							this.menu.hxOffShelfTask = true
						}
						if (item1.code == 'hx_moving_task_manage') {
							this.menu.hxOffShelfTaskManage = true
						}
						if (item1.code == 'hx_moving') {
							this.menu.hx_storage_move_warehouse = true
						}
						if (item1.code == 'hx_storage_stock_query') {
							this.menu.hx_storage_stock_query = true
						}
						if (item1.code == 'hx_storage_goods_update') {
							this.menu.hx_storage_goods_update = true
						}
						if (item1.code == 'hx_error_picking') {

							this.menu.hx_error_picking = true
							this.$http.post('/rest/HxErrorPick/findAppweibiaoshuPageBySpec', {}, {
								params: {},
								header: {
									'Authorization': uni.getStorageSync('token'),
								}
							}).then(res => {
								console.log(res)
								this.keyword1 = res.data
								if (res.data == 0) {
									this.keyword1 = ""
								}
							})
						}
						if (item1.code == 'hx_storage_out_picking_task') {
							this.menu.hx_storage_out_picking_task = true
						}
						if (item1.code == 'hx_storage_out_manage') {
							this.menu.hx_storage_out_manage = true
						}
						if (item1.code == 'hx_storage_agv') {
							this.menu.hx_storage_agv = true
						}
						if (item1.code == 'hx_storage_agv_task') {
							this.menu.hx_storage_agv_task = true
						}

						if (item1.code == 'turnover_container') {
							this.menu.turnover_container = true
						}
						if (item1.code == 'gen_agv_scheduling_task') {
							this.menu.gen_agv_scheduling_task = true
						}
						if (item1.code == 'cc_gen_agv_scheduling_task ') {
							this.menu.cc_gen_agv_scheduling_task = true
						}
						if (item1.code == 'cc_pedestrian_walkway_admin') {
							this.menu.cc_pedestrian_walkway_admin = true
						}
						if (item1.code == 'cc_setup_priority') {
							this.menu.cc_setup_priority = true
						}
						if (item1.code == 'cc_overFlagList') {
							this.menu.cc_overFlagList = true
						}
						if (item1.code == 'setup_priority') {
							this.menu.setup_priority = true
						}
						if (item1.code == 'pedestrian_walkway_admin') {
							this.menu.pedestrian_walkway_admin = true
						}
						if (item1.code == 'overFlagList') {
							this.menu.overFlagList = true
						}
						if (item1.code == 'agv_roadWay_query') {
							this.menu.agv_roadWay_query = true
						}
						if (item1.code == 'turnover_container_md') {
							this.menu.turnover_container_md = true
						}
						if (item1.code == 'tusk_agv_crt_task') {
							this.menu.tusk_agv_crt_task = true
						}
						if (item1.code == 'tusk_storage') {
							this.menu.tusk_storage = true
						}
						if (item1.code == 'tool_blu_ele_sca') {
							this.menu.tool_blu_ele_sca = true
						}
						if (item1.code == 'xh_goods_transport') {
							this.menu.xh_goods_transport = true
						}
						if (item1.code == 'xh_transport_task') {
							this.menu.xh_transport_task = true
						}
						if (item1.code == 'md_pb') {
							this.menu.md_pb = true
						}
						if (item1.code == 'md_pb_jl') {
							this.menu.md_pb_jl = true
						}
					}
					console.log(this.menu)
				}).catch(err => {
					let message = err.data.message;
					this.$refs.uToast.show({
						title: '登录信息失效，请重新登录',
						type: 'error',
						position: 'bottom'
					})
					setTimeout(() => {
						uni.removeStorage({
							key: 'token',
							success: function(res) {

							},
							complete: function(res) {
								uni.reLaunch({
									url: 'pages/login/login'
								});
							}
						});
					}, 1000)
				});
			},
			doUpData() {
				uni.showLoading({
					title: '自动更新中……'
				})
				uni.downloadFile({ //执行下载
					url: config.root + 'appDownload/download', //下载地址
					success: downloadResult => { //下载成功
						uni.hideLoading();
						if (downloadResult.statusCode == 200) {
							plus.runtime.install( //安装
								downloadResult.tempFilePath, {
									force: true
								},
								function(res) {
									utils.showToast('更新成功，重启中');
									plus.runtime.restart();
								}
							);
						}
					}
				});
			},
			search(e) {},
			audio_success() {
				//验证商品编号一致  播报语音
				const innerAudioContext = uni.createInnerAudioContext();
				innerAudioContext.autoplay = true;
				innerAudioContext.src = config.root + '/system/audio_success';
				innerAudioContext.onPlay(() => {
					console.log('开始播放');
				});
				innerAudioContext.onError((res) => {
					console.log(res.errMsg);
					console.log(res.errCode);
				});
			},
			audio_error() {
				//验证商品编号不一致  播报语音
				const innerAudioContext = uni.createInnerAudioContext();
				innerAudioContext.autoplay = true;
				innerAudioContext.src = config.root + '/system/audio_error';
				innerAudioContext.onPlay(() => {
					console.log('开始播放');
				});
				innerAudioContext.onError((res) => {
					console.log(res.errMsg);
					console.log(res.errCode);
				});
			},
			click(e) {
				if (e == 101) {
					this.$Router.push({
						name: 'addtask'
					})
				}
				if (e == 102) {
					this.$Router.push({
						name: 'tasklist'
					})
				}
				if (e == 103) {
					let that = this
					// 只允许通过相机扫码
					uni.scanCode({
						onlyFromCamera: this.onlyFromCamera,
						success: function(res) {
							let taskId = 0
							console.log('条码类型：' + res.scanType);
							console.log('条码内容：' + res.result);
							if (res.scanType == 'QR_CODE') {
								if (res.result.substring(0, 6) == 'qrcode') {
									taskId = res.result.replace('qrcode-56it-', '')
								} else {
									uni.showToast({
										title: '未识别到作业',
										duration: 2000,
										icon: 'none',
									});
									that.audio_error()
								}
							}
							if (res.scanType == 'CODE_128') {
								if (res.result.substring(0, 7) == 'barcode') {
									taskId = res.result.replace('barcode-56it-', '')
								} else {
									uni.showToast({
										title: '未识别到作业',
										duration: 2000,
										icon: 'none',
									});
									that.audio_error()
								}
							}
							if (taskId != 0) {
								uni.request({
									method: "POST",
									header: {
										'Authorization': uni.getStorageSync('token'),
									},
									url: config.root + '/rest/task/findTaskWhether',
									data: {
										id: taskId
									},
									success: (res) => {
										if (res.data.code == 200) {
											let type = '';
											let url = config.root + '/rest/task/'
											if (res.data.data == '') {
												type = '加入'
												url = url + 'join';
											} else {
												type = '退出'
												url = url + 'out';
											}
											uni.showModal({
												content: '确定' + type + '该作业吗？',
												success: (res) => {
													if (res.confirm) {
														uni.request({
															method: "POST",
															header: {
																'Authorization': uni
																	.getStorageSync(
																		'token'
																	),
															},
															url: url,
															data: {
																id: taskId
															},
															success: (res) => {
																if (res
																	.data
																	.code ==
																	200) {
																	uni.showToast({
																		title: type +
																			'成功',
																		duration: 2000
																	});
																	that.audio_success()
																} else {
																	uni.showToast({
																		title: res
																			.data
																			.message,
																		duration: 2000,
																		icon: 'none',
																	});
																	that.audio_error()
																}
															}
														})
													} else if (res.cancel) {
														console.log('用户点击取消');
													}
												}
											})
										} else {
											that.audio_error()
											uni.showToast({
												title: res.data.message,
												duration: 3000,
												icon: 'none',
											});
										}
									}
								})
							} else {
								that.audio_error()
								uni.showToast({
									title: '识别失败，请重扫',
									duration: 2000,
									icon: 'none',
								});
							}
						}
					});
				}
				if (e == 104) {
					this.$Router.push({
						name: 'metaskdetailed'
					})
				}
				if (e == 105) {
					this.$Router.push({
						name: 'feedback'
					})
				}
				if (e == 106) {
					this.$Router.push({
						name: 'taskreport'
					})
				}
				if (e == 107) {
					this.$Router.push({
						name: 'taskRanking'
					})
				}
				if (e == 108) {
					this.$Router.push({
						name: 'signincode'
					})
				}
			},
		click9(e) {
			if (e == 901) {
				this.$Router.push({
					name: 'mdPb'
				})
			}
			if (e == 902) {
				this.$Router.push({
					name: 'mdPbJl'
				})
			}
		},
		
		},
		
		components: {
			tkiQrcode
		},
	}
</script>
<style lang="scss">
	.grid-text {
		font-size: 28rpx;
		margin-top: 4rpx;
		color: $u-type-info;
	}

	.swiper {
		height: 480rpx;
		padding: 20rpx;
	}

	.indicator-dots {
		margin-top: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.indicator-dots-item {
		background-color: $u-tips-color;
		height: 6px;
		width: 6px;
		border-radius: 10px;
		margin: 0 3px;
	}

	.indicator-dots-active {
		background-color: $u-type-primary;
	}

	.wms {
		color: #ffaa00;
	}

	.tms {
		color: #18b566;
	}

	.fruits {
		color: #e45656;
	}

	.tool {
		color: #398ade;
	}

	//二维码
	.page {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.container {
		padding-bottom: 10rpx;
		background-color: #ffffff;
	}

	.panel {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: stretch;
		box-sizing: border-box;
		width: 650rpx;
		margin-top: 20rpx;
		border-radius: 10rpx;
		background-color: #fff;
	}

	.header {
		height: 100rpx;
		background-color: #f0f0f0;
		border-radius: 10rpx 10rpx 0 0;
		text-align: center;
		line-height: 100rpx;
		font-weight: bold;
		letter-spacing: 2px;
		margin-bottom: 40rpx;
		color: #1b82d2;
	}

	.qrcode {
		height: 460rpx;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: center;
	}

	#qrcode {
		width: 460rpx;
		height: 460rpx;
		background-color: #fff;
	}

	//二维码
</style>